package org.apache.dubbo.spi.domain;

import org.apache.dubbo.common.URL;

/**
 * @author duyutian
 * @version 1.0
 * @date 2020/7/28 11:05
 */
public class OptimusPrime implements Robot {
    @Override
    public void sayHello() {
        System.out.println("Hello, I am Optimus Prime.");
    }

    public void setHuman(Human man) {
        URL url = new URL("", "", 0);
        URL url1 = url.addParameter("key", "wuman");
        man.say(url1);
        //man.run();
    }

    public void setAdmin(Admin admin) {
        admin.run();
    }
}
